<?php
/**
 * Created by PhpStorm.
 * User: liandne
 * Date: 2016/12/12
 * Time: 上午11:13
 */

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\PakHug
 *
 * @property integer $id 标识
 * @property integer $pak_id 关联套餐id
 * @property string $hugh_date 休息日期
 * @property integer $hugh_slot 休息时间段(0:没有休息时段 1-6：1-6时段)
 * @property integer $limit_bespeak 限制预约数
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\Packages $package
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug wherePakId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereHughDate($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereHughSlot($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereLimitBespeak($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PakHug whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class PakHug extends Model {

    protected $table = 'pak_hug';
    use SoftDeletes;

    /**
     * 顾问套餐表关联
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function package(){
        return $this->belongsTo('App\Packages','pak_id');
    }
}
